<?php

namespace App\Http\Middleware;
use Closure;

class Activity
{

    public function handle($request, Closure $next)
    {
        //活动还没开始
        if(time() < strtotime('2017-4-3')){
            return redirect()->route('activity1');
        }
        return $next($request);
    }
}
